Test Setup Failed
Push — master ( cd1dab...2a689d )
by
unknown
03:51
created

BaseComponent.extend.initialize   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
dl 0
loc 7
rs 9.4285
c 0
b 0
f 0
nop 1
1
define(function(require) {
2
    'use strict';
3
4
    var PriceListsComponent;
5
    var $ = require('jquery');
6
    var BaseComponent = require('oroui/js/app/components/base/component');
7
8
    PriceListsComponent = BaseComponent.extend({
9
        /**
10
         * @inheritDoc
11
         */
12
        constructor: function PriceListsComponent() {
13
            PriceListsComponent.__super__.constructor.apply(this, arguments);
14
        },
15
16
        /**
17
         * @inheritDoc
18
         */
19
        initialize: function(options) {
20
            var $el = options._sourceElement;
21
            $el.find('input[type="hidden"]').on('change', function(e) {
0 ignored issues
show
Unused Code introduced by
The parameter e is not used and could be removed.

This check looks for parameters in functions that are not used in the function body and are not followed by other parameters which are used inside the function.

Loading history...
22
                $(this).closest('td').find('.validation-failed').remove();
23
                $(this).closest('.error').removeClass('error');
24
            });
25
        }
26
    });
27
28
    return PriceListsComponent;
29
});
30